package com.nuoniu.sibanyun.entity.erp.in;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import com.nuoniu.sibanyun.entity.inOut.VInOutRecordDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 盘点业务
 * </p>
 *
 * @author 小啊刚
 * @since 2021-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("scw_count")
@ApiModel(value="VInventoryCheckMain对象", description="")
public class VInventoryCheckMain extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套ID")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "账套年份")
    @TableField("account_year")
    private Integer accountYear;

    @ApiModelProperty(value = "账套期间")
    @TableField("account_month")
    private Integer accountMonth;

    @ApiModelProperty(value = "单据日期")
    @TableField("voucher_date")
    private LocalDate voucherDate;

    @ApiModelProperty(value = "单据编码")
    @TableField("voucher_code")
    private String voucherCode;

    @ApiModelProperty(value = "单据状态")
    @TableField("voucher_state")
    private Integer voucherState;

    @ApiModelProperty(value = "仓库ID")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "仓库编码")
    @TableField("warehouse_code")
    private String warehouseCode;

    @ApiModelProperty(value = "部门ID")
    @TableField("office_id")
    private Integer officeId;

    @ApiModelProperty(value = "部门名称")
    @TableField("office_name")
    private String officeName;

    @ApiModelProperty(value = "监盘人ID")
    @TableField("supervise_user_id")
    private Integer superviseUserId;

    @ApiModelProperty(value = "监盘人姓名")
    @TableField("supervise_user_name")
    private String superviseUserName;


    @ApiModelProperty(value = "批准人ID")
    @TableField("approve_user_id")
    private Integer approveUserId;

    @ApiModelProperty(value = "批准人姓名")
    @TableField("approve_user_name")
    private String approveUserName;


    @ApiModelProperty(value = "盘点方式")
    @TableField("check_way")
    private String checkWay;

    @ApiModelProperty(value = "复核人ID")
    @TableField("reviewer_user_id")
    private Integer reviewerUserId;

    @ApiModelProperty(value = "复核人姓名")
    @TableField("reviewer_user_name")
    private String reviewerUserName;

    @ApiModelProperty(value = "复核日期")
    @TableField("reviewer_date")
    private LocalDate reviewerDate;

    @ApiModelProperty(value = "盘点人ID")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "盘点人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "盘点日期")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "是否生成其他出入库单据")
    @TableField("is_generate_other_in_out")
    private Boolean isGenerateOtherInOut;

    @TableField(exist = false)
    private List<VInventoryCheckDetail> orderDetailList;



}
